package com.hx.rpc;

import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Huathy
 * @date 2021-10-18 21:13
 * @description
 */
@Target(ElementType.TYPE)   //修饰对象范围：类or接口
@Retention(RetentionPolicy.RUNTIME)
@Component  //被spring扫描
public @interface RpcService {

    Class<?> value();   //拿到服务的接口

    String version();
}
